package com.thread.volatiledemo;

/**
 * @Author milian
 * @Date 2021/7/28 0028 15:03
 */
public class MyThreadDemo extends Thread{

    public MyThreadDemo() {
    }

    public MyThreadDemo(String name) {
        super(name);
    }

    @Override
    public void run() {
      while (Money.money==100000){

      }
        System.out.println("结婚基金已经不是十万了");
    }
}
